﻿using System.ComponentModel.DataAnnotations;

namespace Md.Api.Model.Manage.SysUser.Request;
/// <summary>
/// 通过用户编号更新系统用户请求实体
/// </summary>
public class RequestUpdateSysUserByUserIdModel : RequestBaseModel
{
    /// <summary>
    /// 用户编号
    /// </summary>
    [Required(ErrorMessage = "用户编号不能为空")]
    public long UserId { get; set; }
    /// <summary>
    /// 部门编号
    /// </summary>
    [Required(ErrorMessage = "部门编号不能为空")]
    public long DeptId { get; set; }
    /// <summary>
    /// 用户账号
    /// </summary>
    public string? UserName { get; set; }
    /// <summary>
    /// 用户昵称
    /// </summary>
    public string? NickName { get; set; }
    /// <summary>
    /// 用户类型（00系统用户）
    /// </summary>
    [StringLength(2, ErrorMessage = "用户类型长度为2")]
    public string? UserType { get; set; }
    /// <summary>
    /// 用户邮箱
    /// </summary>
    public string? Email { get; set; }
    /// <summary>
    /// 手机号码
    /// </summary>
    [StringLength(11, ErrorMessage = "手机号长度为11")]
    public string? Phonenumber { get; set; }
    /// <summary>
    /// 用户性别（0男 1女 2未知）
    /// </summary>
    [StringLength(1, ErrorMessage = "用户性别长度为1")]
    public string? Sex { get; set; }
    /// <summary>
    /// 头像地址
    /// </summary>
    public string? Avatar { get; set; }
    /// <summary>
    /// 密码
    /// </summary>
    public string? Password { get; set; }
    /// <summary>
    /// 帐号状态（0正常 1停用）
    /// </summary>
    [StringLength(1, ErrorMessage = "账号状态长度为1")]
    public string? Status { get; set; }
    /// <summary>
    /// 备注
    /// </summary>
    public string? Remark { get; set; }
    /// <summary>
    /// 所属角色编号数组
    /// </summary>
    public long[]? RoleIds { get; set; }
    /// <summary>
    /// 所属岗位编号数组
    /// </summary>
    public long[]? PostIds { get; set; }
}

